<?php

/**
 * @author HIENDV
 * @copyright 2012
 */

session_start();
$id=$_REQUEST['id'];
$room_id=$_REQUEST['room_id'];
$status=$_REQUEST['status'];
$time_start=$_REQUEST['timeStart'];
$time_end=$_REQUEST['timeEnd'];
$price=$_REQUEST['price'];
$time_expired = $_REQUEST['time_expired'];
//$user_id = "hiendv2210";
//$room_id = '1';
//$price = '30';
//$time_start = "19/03/2012 09:00";
//$time_end = "19/03/2012 10:00";

include_once '../../Model/Room.php';
$room = new Room();
$result = $room->update_put_room($id, $room_id, $status, $price, $time_start, $time_end, $time_expired);
echo $result;
?>